<?php

class IndexController extends Base_Controller
{
    public function init()
    {
        parent::init();
    }

    public function indexAction()
    {
        $yt = new Zend_Gdata_YouTube();
        $videoEntry = $yt->getVideoEntry('usJhvgWqJY4');
        $thumbs = $videoEntry->getVideoThumbnails();
        foreach($thumbs as $thumb){
            echo sprintf('<img src="%s"><br>',$thumb['url']);
        }
    }
    
    public function addAction(){
        $this->_redirect('/index');
    }
}

